const Colors = require("./colors");
const anranzhang = require('../kungfu/anran-zhang/anran-zhang');
let me = require('../json/me');
let zhangsan = require('../json/zhangsan');

class Make {
    constructor(msg) {
        this.msg = msg;
    }
    element() {
        const color = new Colors(anranzhang.actions);
        const eles = color.getElement();

        // 触发pfm
        if (this.msg.pfm) me.temp[this.msg.pfm] = 1;

        const arz = new anranzhang(me, zhangsan).condition();
        // console.log('arz,', arz)

        // return JSON.stringify({type:'sc_2', ele:eles});
        return JSON.stringify({ele:arz});
    }
}
module.exports = Make;